終端機顯示Cannot find module 'sass'


Posted by mijouhsieh on 2023-05-10

在做React 作業時,有scss檔案,但沒有安裝sass module。
助教在git clone後
助教的終端機出現 Cannot find module 'sass' (自己電腦下載專案並沒有顯示同狀況)
Cannot find module 'sass'
相關資料:
Cannot find module 'sass'

安裝 npm i sass --save-dev 就解決了


自己從github git clone 專案資料夾後則是
終端機出現
need-to-install-react-scripts.jpg

需要安裝 npm i react-scripts --save-dev
即可npm start ,顯示localhost:3000 專案畫面。


#Cannot find module 'sass' #sass module #react-scripts module







Related Posts

滲透測試基本技術 第一章

滲透測試基本技術 第一章

第二周筆記 (JS) -1

第二周筆記 (JS) -1

[Note] webpack 5 problem: Refused to execute script because its MIME type ('text/html') is not executable

[Note] webpack 5 problem: Refused to execute script because its MIME type ('text/html') is not executable


Comments